
<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<input type="hidden" name="keyId" id="keyId" value="<s:property value="keyId" />">

<script type="text/javascript" src="../resource/activiti/flexPaper/js/flexpaper.js"></script>
<script type="text/javascript" src="../resource/activiti/flexPaper/js/flexpaper_handlers.js"></script>

<div class="modal-body">
    <div class="row">
        <div class="col-md-12">
            <div id="documentViewer" class="flexpaper_viewer" style="height:500px"></div>
        </div>
    </div>
</div>

<script>

    $('#documentViewer').FlexPaperViewer({
        config : {
            SwfFile : '<s:property value="filePath"/>',
            Scale : 0.6,
            ZoomTransition : 'easeOut',
            ZoomTime : 0.5,
            ZoomInterval : 0.1,
            FitPageOnLoad : true,
            FitWidthOnLoad : false,
            FullScreenAsMaxWindow : false,
            ProgressiveLoading : false,
            MinZoomSize : 0.2,
            MaxZoomSize : 5,
            SearchMatchAll : false,
            InitViewMode : 'Portrait',
            RenderingOrder : 'flash,flash',

            ViewModeToolsVisible : true,
            ZoomToolsVisible : true,
            NavToolsVisible : true,
            CursorToolsVisible : true,
            SearchToolsVisible : true,

            jsDirectory : 'js/',

            JSONDataType : 'jsonp',
            key : '',

            WMode : 'window',
            localeChain: 'en_US'
        }
    });
</script>
